package com.example.goods_manage.service.impl;

import com.example.goods_manage.mapper.CategoryMapper;
import com.example.goods_manage.service.CategoryService;
import com.example.goods_manage.utils.AjaxResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <P> @Author: SongKeCheng
 * <P> Type: Class
 * <P> Description:
 * <P> Date: 2024/12/22:10:14
 */

@SuppressWarnings({"unchecked", ""})
@Service
public class CategoryServiceImpl implements CategoryService {
    private static final Logger log = LoggerFactory.getLogger(CategoryServiceImpl.class);


    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public AjaxResult findAllCategory() {
        List categoryList = categoryMapper.findAllCategory();
        return AjaxResult.success(categoryList);
    }
}
